package cms.service.impl;

import cms.entity.Bill;
import cms.entity.BillExample;
import cms.mapper.BillMapper;
import cms.service.totalBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class totalBillServiceImpl implements totalBillService {

    @Autowired
    private BillMapper billMapper;

    public List<Bill> listTotalBill() {

        BillExample example=new BillExample();
        BillExample.Criteria criteria=example.createCriteria();
        criteria.getAllCriteria();

        List<Bill> list=billMapper.selectByExample(example);

        return list;
    }
}
